package pl.prac02;

import java.io.*;
import java.util.*;


public class Tokens {
	
	private Vector lista= new Vector();
	
	public void leeTokens () throws IOException
	{
		BufferedReader lfichero = new BufferedReader(new FileReader("./ficheros/pal_res.txt"));
		//try {
		while (true) {
            if (!lfichero.ready())
                    break;
            StringTokenizer st = new StringTokenizer(lfichero.readLine());
     		while (st.hasMoreTokens()) {
				setLista(st.nextToken());
			}
		} 
	}
	
    public static void main( String[] args )
    {
        //System.out.println( "Hello World! This is my second practice!!" );
    }

	public void setLista(String token) {
		//System.out.println("\ninsertado");
		//this.lista[pos] = caracter;
		this.lista.addElement(token);
		
	}

	public Vector getLista() {
		return lista;
	}
}
